<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view class="title">Discounts</view>
			<view class="right"></view>
		</view>
		<image class="driver" src="/static/img/ing.png"></image>
		<view class="text">No data available at the moment</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 57rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}
	.driver{
		display: block;
		margin: 170rpx auto 58rpx;
		width: 400rpx;
		height: 250rpx;
	}
	.text{
		text-align: center;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #000000;
	}
</style>